$(function () {

        $('#login').formValidation({
			message: 'This value is not valid',
	        icon: {
	            valid: 'glyphicon glyphicon-ok',
	            invalid: 'glyphicon glyphicon-remove',
	            validating: 'glyphicon glyphicon-refresh'
	        },
	        fields: {
	            name: {
	                message: 'The username is not valid',
	                validators: {
	                    notEmpty: {
	                        message: '用户名不能为空'
	                    }
	        /*,
	                    remote: {
                            url: context+'/user/checkUserName',
                            message: '用户名不存在或已过期',
                            delay: 1000
                        }
                    */
	                }
	            },
	            password: {
	                message: 'The username is not valid',
	                validators: {
	                    notEmpty: {
	                        message: '密码不能为空'
	                    }
	            /*,
	                    remote: {
                            url: context+'/user/checkUserPwd',
                            message: '密码错误',
                            delay: 1000
                        }*/
	                }
	            }
	        }
	    });
     
      });
